package com.apes.enquiry.enquiry.repository;

import com.apes.enquiry.enquiry.model.EnquiryItem;
import com.apes.framework.jpa.repository.CustomRepository;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * 类描述：
 *
 * @ClassName EnquiryItemRepository
 * @Description 描述
 * @Author wushilong
 * @Date 2023/3/20 16:33
 * @Version 1.0
 */
public interface EnquiryItemRepository extends CustomRepository<EnquiryItem, String> {

    Page<EnquiryItem> findByEnquiryId(@Param("enquiryId") String enquiryId, Pageable var2);

    List<EnquiryItem> findByEnquiryId(@Param("enquiryId") String enquiryId);

    @Query(value = "select a from EnquiryItem a where a.id in :id")
    Page<EnquiryItem> findInId(List<String> id, Pageable var2);
}
